/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

/**
 * 车辆叫号系统-车辆信息审核
 */
import React, { useState } from 'react';
import { PageContainer } from '@ant-design/pro-layout';
import { Tabs } from 'antd';
import VehicleTable from '@/components/_pages/vehicleCall/vehicle/table';

const VehicleCallVehicle: React.FC = () => {
  const [activeKey, setActiveKey] = useState<string>('reviewed');
  const tabList = [
    {
      tab: '待审核',
      key: 'reviewed',
    },
    {
      tab: '已通过',
      key: 'pass',
    },
    {
      tab: '已拒绝',
      key: 'refuse',
    },
  ];

  return (
    <PageContainer>
      <Tabs onChange={setActiveKey}>
        {tabList.map((item) => (
          <Tabs.TabPane tab={item.tab} key={item.key}>
            <VehicleTable type={item.key} activeKey={activeKey} />
          </Tabs.TabPane>
        ))}
      </Tabs>
    </PageContainer>
  );
};

export default VehicleCallVehicle;
